<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?=$da['title']?></title>
<link rel="stylesheet" type="text/css" href="res/css/css.css"/>
<script type="text/javascript" src="res/js/jquery.js"></script>
<script type="text/javascript" src="res/js/js.js"></script>
<script type="text/javascript" src="res/js/base64-min.js"></script>
<script type="text/javascript" src="res/bootstrapplugin/jquery-bootstable.js"></script>
<link rel="stylesheet" type="text/css" href="res/fontawesome/css/font-awesome.min.css">
<link rel="stylesheet" type="text/css" href="res/css/table.css"/>
<style>

</style>
<script>

function initbody(){
	
	table = $('#viewshow').bootstable({
		url:'index.php?m=agent&a=data',method:'get',
		cellurl:'index.php',fanye:false,
		columns:[{
			text:'名称',dataIndex:'name'
		},{
			text:'agentkey',dataIndex:'agentkey'
		},{
			text:'系统地址',dataIndex:'url'
		},{
			text:'操作时间',dataIndex:'optdt',sortable:true
		},{
			text:'状态',dataIndex:'status',sortable:true,type:'checkbox'
		},{
			text:'文件数',dataIndex:'filecount',renderer:function(s,d){
				return '<a class="zhu" href="?m=file&id='+d.id+'">'+s+'</a>';
			}
		},{
			text:'',dataIndex:'opts',renderer:function(s,d){
				return '<a href="?m=agent&a=form&id='+d.id+'">编辑</a>';
			}
		}]
		
		
	});
}
</script>
</head>

<body style="background:#f1f1f1">

<?php 
include_once(''.P.'/public/top.html');
?>

<div align="center">

<div style="width:950px;margin:20px 0px" align="left">
	<div style="color:#cccccc">
		<a href="" class="zhu">平台首页</a> &gt;
		<a href="" class="zhu">应用管理</a>
	</div>
	<div style="background-color:white;margin:20px 0px;border:1px #eeeeee solid;min-height:500px;border-radius:5px">
		<div style="padding:10px">
			<div style="padding:5px 0px"><a class="webbtn" href="?m=agent&a=form&id=0">新增</a></div>
			<div class="blank10"></div>
			<div id="viewshow"></div>
		</div>
	</div>
</div>



<?php 
include_once(''.P.'/public/footer.html');
?>
</div>

</body>
</html>